package com.rp.common.vo;

import java.util.List;

import org.raptor.pagination.Page2;

/**
 * 分页数据封装
 * @author HuangJian
 *
 */
public class PageData {
	
	private Integer total;
	private List<?> data;
	
	public PageData(Integer total, List<?> data){
		this.total = total;
		this.data = data;
	}
	
	public PageData(Page2 page){
		this.total = page.getTotalCount();
		this.data = page.getData();
	}
	
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public List<?> getData() {
		return data;
	}
	public void setData(List<?> data) {
		this.data = data;
	}
	
}
